package com.qfedu.ss.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.ss.entity.StorageTbl;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @program: Seata01
 * @description: 持久层 定义操作数据库的方法，接口-StorageTblDao
 * @author: Feri
 * @create: 2024-11-15 08:29:51
 */
public interface StorageTblDao extends BaseMapper<StorageTbl> {
    @Update("update storage_tbl set count=count+#{num} where commodity_code=#{code}")
    Integer updateCount(@Param("code") String code, @Param("num") Integer num);
}